package com.xiaoyung.easyisapisdk.common.form;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;

//@Data
public class SelectParam {
	
	//@NotEmpty(message="tableCode不能为空")
	private String tableCode;
	
	private Boolean needColInfo = false;//默认false
	private Integer pageSize;
	private Integer pageNo;
	
	private JSONArray groupWhereList;
	private JSONObject whereParttern;

	
	private String where;//仅仅where parttern查询  f1 = a and f2=2 or (f1=2& f3=3)
	
	private JSONArray orderList;
	private String[] selectFields;// ['count(f1),avg(f1),avg(f1),']
	private String[] groupByFields;
	public String getTableCode() {
		return tableCode;
	}
	public void setTableCode(String tableCode) {
		this.tableCode = tableCode;
	}
	public Boolean getNeedColInfo() {
		return needColInfo;
	}
	public void setNeedColInfo(Boolean needColInfo) {
		this.needColInfo = needColInfo;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getPageNo() {
		return pageNo;
	}
	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}
	public JSONArray getGroupWhereList() {
		return groupWhereList;
	}
	public void setGroupWhereList(JSONArray groupWhereList) {
		this.groupWhereList = groupWhereList;
	}
	public JSONObject getWhereParttern() {
		return whereParttern;
	}
	public void setWhereParttern(JSONObject whereParttern) {
		this.whereParttern = whereParttern;
	}
	public String getWhere() {
		return where;
	}
	public void setWhere(String where) {
		this.where = where;
	}
	public JSONArray getOrderList() {
		return orderList;
	}
	public void setOrderList(JSONArray orderList) {
		this.orderList = orderList;
	}
	public String[] getSelectFields() {
		return selectFields;
	}
	public void setSelectFields(String[] selectFields) {
		this.selectFields = selectFields;
	}
	public String[] getGroupByFields() {
		return groupByFields;
	}
	public void setGroupByFields(String[] groupByFields) {
		this.groupByFields = groupByFields;
	}
	

}
